//*********************************************************
//
//    Copyright (c) Microsoft. All rights reserved.
//    This code is licensed under the Apache License, Version 2.0.
//    THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
//    ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
//    IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
//    PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************

using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.Research.DataLayer
{
    partial class ActivityInstance
    {
        //public class CopyHelper
        //{
        //    public CopyHelper(Job job, Activity activity)
        //    {
        //        this.job = job;
        //        this.activity = activity;
        //    }

        //    public IObject CopyTo(Connection target, ActivityInstance instance)
        //    {
        //        Connection store = target;
        //        List<Parameter> mydata = new List<Parameter>();
        //        mydata.Add(new Parameter("ParameterXml", Parameter.ParamType.Text, Parameter.ParamDirection.In, instance.parameterxml));
        //        mydata.Add(new Parameter("XomlContents", Parameter.ParamType.Text, Parameter.ParamDirection.In, instance.xomlcontents));
        //        mydata.Add(new Parameter("JobID", Parameter.ParamType.Guid, Parameter.ParamDirection.In,
        //            (this.job == null ? Guid.Empty : ((IObject)this.job).ID)));
        //        mydata.Add(new Parameter("ActivityID", Parameter.ParamType.Guid, Parameter.ParamDirection.In,
        //            (this.activity == null ? Guid.Empty : ((IObject)this.activity).ID)));
        //        PipelineParameter<ActivityInstance> pipe = new PipelineParameter<ActivityInstance>(CreateFromDataStore);
        //        IObject newObj = instance.SaveTo(mydata, store, pipe);
        //        return newObj;
        //    }

        //    Job job;

        //    Activity activity;
        //}
    }
}
